/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package GUI;

import Connection.SQLConnection;
import Entities.SACH;
import Entities.TACGIA;
import Entities.THELOAI;
import java.awt.event.KeyEvent;
import java.net.URL;
import java.sql.*;
import java.util.ResourceBundle;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.*;
import javafx.scene.image.ImageView;
import javafx.scene.input.KeyCode;
import javax.swing.JOptionPane;

/**
 * FXML Controller class
 *
 * @author lainh_000
 */
public class FX_ThemSachController implements Initializable {

    
    //Khai báo control
    @FXML Button btn_ok;
    @FXML Button btn_huy;
    @FXML TextField txt_tensach;
    @FXML ComboBox cbb_theloai;
    @FXML ComboBox cbb_tacgia;
    @FXML TextField txt_hinhanh;
    @FXML TextField txt_dongia;
    @FXML Button btn_chonhinh;
    @FXML Label lb;
    @FXML ImageView img;
    
    final ObservableList<THELOAI> data_tl = FXCollections.observableArrayList(); 
    
    /**
     * Initializes the controller class.
     */
    
    @Override
    public void initialize(URL url, ResourceBundle rb) {
        // TODO
        KhoiTao();

    }    
    
    private void KhoiTao()
    {
        assert btn_ok != null;
        assert btn_huy != null;
        assert txt_tensach != null;
        assert cbb_theloai != null;
        assert cbb_tacgia != null;
        assert txt_hinhanh != null;
        assert txt_dongia != null;
        assert btn_chonhinh != null;
    }
    
    
}
